package com.rndemo;


import android.os.Bundle;
import android.view.View;



public class MainActivity extends BaseRNActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.appPage:
                RNCommonActivity.startForResult(this,null,"appPage");
                break;
            case R.id.baiduPage:
                RNCommonActivity.startForResult(this,null,"baiduPage");
                break;
            case R.id.dbDemoPage:
                RNCommonActivity.startForResult(this,null,"dbDemoPage");
                break;
            case R.id.IOSApi:
                RNCommonActivity.startForResult(this,null,"IOSApi");
                break;
            case R.id.Zxing:
                RNCommonActivity.startForResult(this,null,"Zxing");
                break;
            case R.id.listPage:
                RNCommonActivity.startForResult(this,null,"flatListPage");
                break;
            case R.id.scrollPage:
                RNCommonActivity.startForResult(this,null,"scrollPage");
                break;
            case R.id.listViewPage:
                RNCommonActivity.startForResult(this,null,"listViewPage");
                break;
            case R.id.recyclerView:
                RNCommonActivity.startForResult(this,null,"recyclerViewPage");
                break;
            case R.id.refreshPage:
                RNCommonActivity.startForResult(this,null,"refreshPage");
                break;
        }
    }

}
